const state = {
    //关键词
    goodsName: "",
    goodsList: [],
}

const mutations = {
    getGoodsName(state, param) {
        state.goodsName = param
        console.log(state.goodsName);
    },
    GETGOODSLIST(state, res) {
        state.goodsList = res.data.data.goodsList
    }
}

const actions = {
    getGoodsList(context, res) {
        context.commit('GETGOODSLIST', res)
    }
}

const getters = {
}

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}